﻿<%@ Page Title="" Language="C#" MasterPageFile="~/AppCode/MasterPages/Admin.master" AutoEventWireup="true" CodeFile="EmployeeDetails.aspx.cs" Inherits="AppCode_Admin_EmployeeDetails" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
     <div style="width:900px;margin:0 auto;margin-bottom:20px;">
        <p style="margin-left:380px; font-size:19px;margin-top:40px; font-weight:bold;margin-bottom:20px;">Employee Details</p>
        <asp:GridView ID="GridView1" runat="server" Width="900px" BackColor="White" BorderColor="#999999" BorderStyle="Solid" BorderWidth="1px" CellPadding="3" AutoGenerateColumns="False" ForeColor="Black" GridLines="Vertical" RowStyle-HorizontalAlign="Center">
            <AlternatingRowStyle BackColor="#CCCCCC" />
            <Columns>
                <asp:BoundField HeaderText="Username" DataField="UserName" />
                <asp:BoundField HeaderText="Employee name" DataField="LastName" />
                <asp:BoundField HeaderText="Phone no" DataField="ContactNo" />
                <asp:BoundField HeaderText="Address" DataField="Address" />
                <asp:BoundField HeaderText="Join date" DataField="JoinDate" />
                <asp:BoundField HeaderText="Salary" DataField="Salary" />
                <asp:TemplateField>

                    <ItemTemplate>
                        <a href="DeleteEmployee.aspx?id=<%#Eval("Empno") %>">Delete</a>
                        <a href='UpdateEmployee.aspx?id=<%#Eval("Empno") %>'>UpDate</a>

                    </ItemTemplate>

                </asp:TemplateField>
            </Columns>

            <FooterStyle BackColor="#CCCCCC" />
            <HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
            <SelectedRowStyle BackColor="#000099" Font-Bold="True" ForeColor="White" />
            <SortedAscendingCellStyle BackColor="#F1F1F1" />
            <SortedAscendingHeaderStyle BackColor="#808080" />
            <SortedDescendingCellStyle BackColor="#CAC9C9" />
            <SortedDescendingHeaderStyle BackColor="#383838" />

        </asp:GridView>
    </div>
</asp:Content>

